package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderInvoice;
import com.nbsaas.boot.order.api.domain.simple.OrderInvoiceSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 列表对象转换器
*/

public class OrderInvoiceSimpleConvert implements Converter<OrderInvoiceSimple, OrderInvoice> {




@Override
public OrderInvoiceSimple convert(OrderInvoice source) {
    OrderInvoiceSimple result = new OrderInvoiceSimple();

                result.setInvoiceContent(source.getInvoiceContent());
                result.setReceiverPhone(source.getReceiverPhone());
                result.setOrderId(source.getOrderId());
                result.setReceiverName(source.getReceiverName());
                result.setInvoiceType(source.getInvoiceType());
                result.setTaxNumber(source.getTaxNumber());
                result.setInvoiceAmount(source.getInvoiceAmount());
                result.setBillingAddress(source.getBillingAddress());
                result.setId(source.getId());
                result.setInvoiceDate(source.getInvoiceDate());
                result.setInvoiceTitle(source.getInvoiceTitle());


    return result;
}

}